/**
 * @author		Ben Layet
 * @version 	1.0
 * @date		28 Sep 2008
 */
package org.ignoramus.application.view;

import java.util.Observable;
import java.util.Observer;

import org.ignoramus.application.store.LessonStore;

/**
 * Interface for object interested in Select Lesson events.
 */
public abstract class SelectLessonListener  implements Observer
{

	/**
	 * Called when the review card is modified.
	 * @param o the observable object
	 * @param arg extra information ignored.
	 */
	@Override
	public final void update(Observable o, Object arg)
	{
		lessonSelected((LessonStore) o);
	}

	/**
	 * Called when a lesson is selected.
	 * @param lessonStore the store of the selected lesson.
	 */
	public abstract void lessonSelected(LessonStore lessonStore);
}
